{include file="public/header"}
{load href="/public/static/Content/ThemesBusiness/ListPage.css"}
<script src="/public/static/Scripts/common-binder-list-view.js"></script>
<script src="/public/static/Scripts/ScriptsEasyui/datagrid-filter.js"></script>

    <script type="text/javascript">

        var data = null;
        var gridListHandler = new listGridHandler(data, 'gridListHandler', 'gridList');
        gridListHandler.formName = '管理员';
        gridListHandler.enableFilter = false;
        $(function(){
            gridListHandler.bindFilter($('#gridList'));
        });

      
     
         function formatState(val, row, index) {
            if (row.status == 1) {
                val ='正常';
            }
            else {
                val ='已停用';
            }
            return val;
        }


    </script>
    


<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:false">
        <table id="gridList" exUsageType="SingleSelection" data-options="pagination:true,pageSize:15,pageList:[10,15,20],multiSort:true,remoteSort:true,striped:true,fit:true,fitColumns:true,rownumbers:true,idField:'_ID',singleSelect: true"
               url="/admin/usergroup/admin.html?ajax=1&id={$id}">
            <thead data-options="frozen:true">
                <tr>
                   
                     <th  data-options="field:'username',halign:'center',align:'left',width:120,filterable:false">管理员名称</th>
                    <th  data-options="field:'realname',halign:'center',align:'left',width:120,filterable:false"><span class="grid-header-sortable">真实姓名</span></th>
                    <th  data-options="field:'company_name',halign:'center',align:'left',width:120,filterable:false"><span class="grid-header-sortable">公司名称</span></th>
                    <th  data-options="field:'group',halign:'center',align:'left',width:180,filterable:false"><span class="grid-header-sortable">所属组</span></th>
                    <th  data-options="field:'status',halign:'center',align:'left',width:80,filterable:false,formatter:formatState"><span class="grid-header-sortable">状态</span></th>
                 
                     <th  data-options="field:'addtime',halign:'center',align:'left',width:180,filterable:false"><span class="grid-header-sortable">添加时间</span></th>
                </tr>
            </thead>
       
        </table>
    </div>
   
</div>

{include file="public/footer"/}